/**
 * Copyright (C) 2016 Juno Inc., All Rights Reserved.
 */
package com.jyl.designPattern.behavioral.observer;

/**
 *
 * @author Long, E-mail:jyl0401@163.com
 * @date 2019年4月22日 上午7:15:07
 */
public class Reader implements Observer{

	private String name;
	
	public void update(Subject subject) {
		System.out.println(name+"收到了报纸，内容是=="+((NewsPaper)subject).getContent());
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
